---
layout: single
property_name: border-radius
---

<section id="border-radius" class="property">
  <header class="property-header">
    <nav class="property-links">
      <a class="property-links-direct" href="{{site.url}}/property/border-radius/" data-property-name="border-radius" data-tooltip="Single page for this property">Permalink</a>
      <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="border-radius">Share</a>
      <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/border-radius" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
    </nav>
    <h2 class="property-name">
      <a href="#border-radius"><span>#</span>border-radius</a>
    </h2>
    <div class="property-description">
      <p>Defines the <strong>radius</strong> of the element&#39;s corners.</p>

    </div>

  </header>

    <style type="text/css">.border-radius { border: 4px solid #05ffb0; }</style>




    <section class="example">
      <header class="example-header">
        <p class="example-name">
            <code class="example-default" data-tooltip="This is the property's default value">default</code>


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="border-radius: 0;">border-radius: 0;</code>
        </p>
        <div class="example-description">
          <p>Removes any border radius.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div border-radius " id="border-radius-0">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#border-radius-0{ border-radius:0;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="border-radius: 20px;">border-radius: 20px;</code>
        </p>
        <div class="example-description">
          <p>You can use <strong>pixel</strong> values.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div border-radius " id="border-radius-20px">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#border-radius-20px{ border-radius:20px;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="border-radius: 50%;">border-radius: 50%;</code>
        </p>
        <div class="example-description">
          <p>You can use <strong>percentage</strong> values. In this example, the radius starts halfway through each border.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div border-radius " id="border-radius-50">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#border-radius-50{ border-radius:50%;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="border-radius: 20px 50%;">border-radius: 20px 50%;</code>
        </p>
        <div class="example-description">
          <p>If you set <strong>two values</strong>, the first one is for the <em>top</em> and <em>bottom</em> borders, the second one for the <em>left</em> and <em>right</em> borders.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div border-radius " id="border-radius-20px-50">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#border-radius-20px-50{ border-radius:20px 50%;}</style>
    </section>

</section>
